<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Agile Modbus: Slave Util Exported Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Agile Modbus
   &#160;<span id="projectnumber">1.1.4</span>
   </div>
   <div id="projectbrief">Lightweight modbus protocol stack.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group___s_l_a_v_e___u_t_i_l___exported___functions.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Slave Util Exported Functions<div class="ingroups"><a class="el" href="group___u_t_i_l.html">UTIL</a> &raquo; <a class="el" href="group___s_l_a_v_e___u_t_i_l.html">Slave Util</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for Slave Util Exported Functions:</div>
<div class="dyncontent">
<div class="center"><img src="group___s_l_a_v_e___u_t_i_l___exported___functions.png" border="0" usemap="#agroup______s__l__a__v__e______u__t__i__l______exported______functions" alt=""/></div>
<map name="agroup______s__l__a__v__e______u__t__i__l______exported______functions" id="agroup______s__l__a__v__e______u__t__i__l______exported______functions">
<area shape="rect" href="group___s_l_a_v_e___u_t_i_l.html" title=" " alt="" coords="5,13,91,38"/>
<area shape="rect" title=" " alt="" coords="139,5,285,45"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga6d7613fbda26c40a969df673cf9b8c5b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_l_a_v_e___u_t_i_l___exported___functions.html#ga6d7613fbda26c40a969df673cf9b8c5b">agile_modbus_slave_util_callback</a> (<a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *ctx, struct <a class="el" href="structagile__modbus__slave__info.html">agile_modbus_slave_info</a> *slave_info, const void *data)</td></tr>
<tr class="memdesc:ga6d7613fbda26c40a969df673cf9b8c5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slave callback function.  <a href="group___s_l_a_v_e___u_t_i_l___exported___functions.html#ga6d7613fbda26c40a969df673cf9b8c5b">More...</a><br /></td></tr>
<tr class="separator:ga6d7613fbda26c40a969df673cf9b8c5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga6d7613fbda26c40a969df673cf9b8c5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6d7613fbda26c40a969df673cf9b8c5b">&#9670;&nbsp;</a></span>agile_modbus_slave_util_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int agile_modbus_slave_util_callback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structagile__modbus__slave__info.html">agile_modbus_slave_info</a> *&#160;</td>
          <td class="paramname"><em>slave_info</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Slave callback function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>modbus handle </td></tr>
    <tr><td class="paramname">slave_info</td><td>slave information body </td></tr>
    <tr><td class="paramname">data</td><td>private data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>=0: normal; &lt;0: Abnormal (-AGILE_MODBUS_EXCEPTION_UNKNOW(-255): Unknown exception, the slave will not package the response data) (Other negative exception codes: package exception response data from the opportunity) </dd></dl>

<p class="definition">Definition at line <a class="el" href="agile__modbus__slave__util_8c_source.html#l00387">387</a> of file <a class="el" href="agile__modbus__slave__util_8c_source.html">agile_modbus_slave_util.c</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___s_l_a_v_e___u_t_i_l___exported___functions_ga6d7613fbda26c40a969df673cf9b8c5b_cgraph.png" border="0" usemap="#agroup___s_l_a_v_e___u_t_i_l___exported___functions_ga6d7613fbda26c40a969df673cf9b8c5b_cgraph" alt=""/></div>
<map name="agroup___s_l_a_v_e___u_t_i_l___exported___functions_ga6d7613fbda26c40a969df673cf9b8c5b_cgraph" id="agroup___s_l_a_v_e___u_t_i_l___exported___functions_ga6d7613fbda26c40a969df673cf9b8c5b_cgraph">
<area shape="rect" title="Slave callback function." alt="" coords="5,129,160,171"/>
<area shape="rect" href="group___s_l_a_v_e___u_t_i_l___private___functions.html#gad3e4f189a6169fc7b59228b7c321cb66" title="mask write register" alt="" coords="208,111,363,138"/>
<area shape="rect" href="group___s_l_a_v_e___u_t_i_l___private___functions.html#gaa02440218e0c32a76738414a0fc2aeb4" title="read register" alt="" coords="228,61,343,87"/>
<area shape="rect" href="group___s_l_a_v_e___u_t_i_l___private___functions.html#gadcbf0921f3bb3aead3dc01cdb92a0917" title="Write and read registers." alt="" coords="208,162,363,189"/>
<area shape="rect" href="group___s_l_a_v_e___u_t_i_l___private___functions.html#ga7e9c1eddbd7f6f113b75170ef8e50e4e" title="write register" alt="" coords="226,213,345,239"/>
<area shape="rect" href="group___s_l_a_v_e___u_t_i_l___private___functions.html#ga30993ba8e98dab4ab152116fa0cc6742" title="Get the mapping object from the mapping object array according to the register address." alt="" coords="419,137,557,163"/>
<area shape="rect" href="group___slave___operation___functions.html#gab8a9c04d3fe520c9323600940cf080eb" title="slave IO settings" alt="" coords="411,5,565,47"/>
<area shape="rect" href="group___slave___operation___functions.html#gae9ba6989bbe265b05caeba41a28db038" title="slave register settings" alt="" coords="411,71,565,112"/>
<area shape="rect" href="group___slave___operation___functions.html#gac82879249cfa7d8926aa9381a0264a72" title="Read slave register data." alt="" coords="411,188,565,229"/>
<area shape="rect" href="group___slave___operation___functions.html#gaa5c9135cec09ea8626db054bd3d75227" title="Read slave IO status." alt="" coords="411,253,565,295"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
